package com.sc.nft.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author Radish
 * @Description:
 * @date 2024-12-03
 */
@Data
public class AdminEcologyPointsUserWalletDataVO {


    @ApiModelProperty(value = "用户总投入")
    private String dynamicRewardAmount = "0";

    @ApiModelProperty(value = "总发放")
    private String amount = "0";

    @ApiModelProperty(value = "铸造消耗总积分")
    private String castSum = "0";

    @ApiModelProperty(value = "重铸消耗总积分")
    private String reforgeSum = "0";

    @ApiModelProperty(value = "用户剩余总积分")
    private String userBalanceAmount = "0";

    @ApiModelProperty(value = "周期用户总投入")
    private String cycleDynamicRewardAmountCycle = "0";

    @ApiModelProperty(value = "周期总发放")
    private String cycleAmount = "0";

    @ApiModelProperty(value = "周期铸造消耗总积分")
    private String cycleCastSum = "0";

    @ApiModelProperty(value = "周期重铸消耗总积分")
    private String cycleReforgeSum = "0";


    public void setAmount(BigDecimal amount) {
        if (amount != null) {
            this.amount = amount.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
        }
    }


    public void setCastSum(BigDecimal castSum) {
        if (castSum != null) {
            this.castSum = castSum.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
        }
    }

    public void setReforgeSum(BigDecimal reforgeSum) {
        if (reforgeSum != null) {
            this.reforgeSum = reforgeSum.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
        }

    }

    public void setDynamicRewardAmount(BigDecimal dynamicRewardAmount) {
        this.dynamicRewardAmount = dynamicRewardAmount.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }



    public void setUserBalanceAmount(BigDecimal userBalanceAmount) {
        this.userBalanceAmount = userBalanceAmount.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }


    public void setCycleDynamicRewardAmountCycle(BigDecimal cycleDynamicRewardAmountCycle) {
        this.cycleDynamicRewardAmountCycle = cycleDynamicRewardAmountCycle.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
    public void setCycleAmount(BigDecimal cycleAmount) {
        if (cycleAmount != null) {
            this.cycleAmount = cycleAmount.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
        }

    }
    public void setCycleCastSum(BigDecimal cycleCastSum) {
        if (cycleCastSum != null) {
            this.cycleCastSum = cycleCastSum.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
        }

    }
    public void setCycleReforgeSum(BigDecimal cycleReforgeSum) {
        if (cycleReforgeSum != null) {
            this.cycleReforgeSum = cycleReforgeSum.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
        }
    }

}
